home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / TemaCD / povray / povwin3.exe / %MAINDIR% / Insert Menu / Light sources / Cylindrical light.txt < prev    next >
Encoding:
Text File  |  2000-04-06  |  636 b   |  14 lines

  1. // create a point "spotlight" (cylindrical directed) light source
  2. light_source
  3. {
  4.   0*x                     // light's position (translated below)
  5.   color rgb <1,1,1>       // light's color
  6.   spotlight               // this kind of light source
  7.   cylinder                // this variation
  8.   translate <40, 80, -40> // <x y z> position of light
  9.   point_at <0, 0, 0>      // direction of spotlight
  10.   radius 5                // hotspot (inner, in degrees)
  11.   tightness 50            // tightness of falloff (1...100) lower is softer, higher is tighter
  12.   falloff 8               // intensity falloff radius (outer, in degrees)
  13. }
  14.